package com.abberbex;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

/**
 * 
 * @author Brendan Dickerson
 *
 */
public class GameBase extends StateBasedGame{
	
	private final int MENUSTATE = 0;
	private final int LEVELONESTATE = 1;
	

	public GameBase(String name) {
		super(name);

	}

	public static void main(String[] args)
	{
		try{
            AppGameContainer container = new AppGameContainer(new GameBase("Movement"));
            container.setDisplayMode(768, 576, false);
            container.setTargetFrameRate(60);
            container.setShowFPS(false);
            container.start();		
            } catch(SlickException s) {
			s.printStackTrace();
		}
	}

	@Override
	public void initStatesList(GameContainer cont) throws SlickException {
		this.addState(new MenuState(MENUSTATE));
		this.addState(new LevelOneState(LEVELONESTATE));
		this.enterState(MENUSTATE);

	}

}
